package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_pms_pot database table.
 * 
 */
@Entity
@Table(name="per_pms_pot")
@NamedQuery(name="PerPmsPot.findAll", query="SELECT p FROM PerPmsPot p")
public class PerPmsPot implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int potid;

	private String potzw;

	//bi-directional many-to-one association to PerIntention
	@OneToMany(mappedBy="perPmsPot")
	private List<PerIntention> perIntentions;

	//bi-directional many-to-one association to PerPmsBzb
	@OneToMany(mappedBy="perPmsPot")
	private List<PerPmsBzb> perPmsBzbs;

	//bi-directional many-to-one association to PerPmsZhiji
	@ManyToOne
	@JoinColumn(name="ZHIJIID")
	private PerPmsZhiji perPmsZhiji;

	//bi-directional many-to-one association to PerPmsStm
	@OneToMany(mappedBy="perPmsPot")
	private List<PerPmsStm> perPmsStms;

	//bi-directional many-to-one association to PerPmsZG
	@OneToMany(mappedBy="perPmsPot")
	private List<PerPmsZG> perPmsZGs;

	//bi-directional many-to-one association to PerPmsZQ
	@OneToMany(mappedBy="perPmsPot")
	private List<PerPmsZQ> perPmsZQs;

	//bi-directional many-to-one association to PerRetRse
	@OneToMany(mappedBy="perPmsPot")
	private List<PerRetRse> perRetRses;

	//bi-directional many-to-one association to PerRetWAlt
	@OneToMany(mappedBy="perPmsPot")
	private List<PerRetWAlt> perRetWAlts;

	//bi-directional many-to-one association to PerSlySet
	@OneToMany(mappedBy="perPmsPot")
	private List<PerSlySet> perSlySets;

	public PerPmsPot() {
	}

	public int getPotid() {
		return this.potid;
	}

	public void setPotid(int potid) {
		this.potid = potid;
	}

	public String getPotzw() {
		return this.potzw;
	}

	public void setPotzw(String potzw) {
		this.potzw = potzw;
	}

	public List<PerIntention> getPerIntentions() {
		return this.perIntentions;
	}

	public void setPerIntentions(List<PerIntention> perIntentions) {
		this.perIntentions = perIntentions;
	}

	public PerIntention addPerIntention(PerIntention perIntention) {
		getPerIntentions().add(perIntention);
		perIntention.setPerPmsPot(this);

		return perIntention;
	}

	public PerIntention removePerIntention(PerIntention perIntention) {
		getPerIntentions().remove(perIntention);
		perIntention.setPerPmsPot(null);

		return perIntention;
	}

	public List<PerPmsBzb> getPerPmsBzbs() {
		return this.perPmsBzbs;
	}

	public void setPerPmsBzbs(List<PerPmsBzb> perPmsBzbs) {
		this.perPmsBzbs = perPmsBzbs;
	}

	public PerPmsBzb addPerPmsBzb(PerPmsBzb perPmsBzb) {
		getPerPmsBzbs().add(perPmsBzb);
		perPmsBzb.setPerPmsPot(this);

		return perPmsBzb;
	}

	public PerPmsBzb removePerPmsBzb(PerPmsBzb perPmsBzb) {
		getPerPmsBzbs().remove(perPmsBzb);
		perPmsBzb.setPerPmsPot(null);

		return perPmsBzb;
	}

	public PerPmsZhiji getPerPmsZhiji() {
		return this.perPmsZhiji;
	}

	public void setPerPmsZhiji(PerPmsZhiji perPmsZhiji) {
		this.perPmsZhiji = perPmsZhiji;
	}

	public List<PerPmsStm> getPerPmsStms() {
		return this.perPmsStms;
	}

	public void setPerPmsStms(List<PerPmsStm> perPmsStms) {
		this.perPmsStms = perPmsStms;
	}

	public PerPmsStm addPerPmsStm(PerPmsStm perPmsStm) {
		getPerPmsStms().add(perPmsStm);
		perPmsStm.setPerPmsPot(this);

		return perPmsStm;
	}

	public PerPmsStm removePerPmsStm(PerPmsStm perPmsStm) {
		getPerPmsStms().remove(perPmsStm);
		perPmsStm.setPerPmsPot(null);

		return perPmsStm;
	}

	public List<PerPmsZG> getPerPmsZGs() {
		return this.perPmsZGs;
	}

	public void setPerPmsZGs(List<PerPmsZG> perPmsZGs) {
		this.perPmsZGs = perPmsZGs;
	}

	public PerPmsZG addPerPmsZG(PerPmsZG perPmsZG) {
		getPerPmsZGs().add(perPmsZG);
		perPmsZG.setPerPmsPot(this);

		return perPmsZG;
	}

	public PerPmsZG removePerPmsZG(PerPmsZG perPmsZG) {
		getPerPmsZGs().remove(perPmsZG);
		perPmsZG.setPerPmsPot(null);

		return perPmsZG;
	}

	public List<PerPmsZQ> getPerPmsZQs() {
		return this.perPmsZQs;
	}

	public void setPerPmsZQs(List<PerPmsZQ> perPmsZQs) {
		this.perPmsZQs = perPmsZQs;
	}

	public PerPmsZQ addPerPmsZQ(PerPmsZQ perPmsZQ) {
		getPerPmsZQs().add(perPmsZQ);
		perPmsZQ.setPerPmsPot(this);

		return perPmsZQ;
	}

	public PerPmsZQ removePerPmsZQ(PerPmsZQ perPmsZQ) {
		getPerPmsZQs().remove(perPmsZQ);
		perPmsZQ.setPerPmsPot(null);

		return perPmsZQ;
	}

	public List<PerRetRse> getPerRetRses() {
		return this.perRetRses;
	}

	public void setPerRetRses(List<PerRetRse> perRetRses) {
		this.perRetRses = perRetRses;
	}

	public PerRetRse addPerRetRs(PerRetRse perRetRs) {
		getPerRetRses().add(perRetRs);
		perRetRs.setPerPmsPot(this);

		return perRetRs;
	}

	public PerRetRse removePerRetRs(PerRetRse perRetRs) {
		getPerRetRses().remove(perRetRs);
		perRetRs.setPerPmsPot(null);

		return perRetRs;
	}

	public List<PerRetWAlt> getPerRetWAlts() {
		return this.perRetWAlts;
	}

	public void setPerRetWAlts(List<PerRetWAlt> perRetWAlts) {
		this.perRetWAlts = perRetWAlts;
	}

	public PerRetWAlt addPerRetWAlt(PerRetWAlt perRetWAlt) {
		getPerRetWAlts().add(perRetWAlt);
		perRetWAlt.setPerPmsPot(this);

		return perRetWAlt;
	}

	public PerRetWAlt removePerRetWAlt(PerRetWAlt perRetWAlt) {
		getPerRetWAlts().remove(perRetWAlt);
		perRetWAlt.setPerPmsPot(null);

		return perRetWAlt;
	}

	public List<PerSlySet> getPerSlySets() {
		return this.perSlySets;
	}

	public void setPerSlySets(List<PerSlySet> perSlySets) {
		this.perSlySets = perSlySets;
	}

	public PerSlySet addPerSlySet(PerSlySet perSlySet) {
		getPerSlySets().add(perSlySet);
		perSlySet.setPerPmsPot(this);

		return perSlySet;
	}

	public PerSlySet removePerSlySet(PerSlySet perSlySet) {
		getPerSlySets().remove(perSlySet);
		perSlySet.setPerPmsPot(null);

		return perSlySet;
	}

}